package com.youma.wt.mvpbaselib;

import android.support.v7.widget.RecyclerView;
import android.view.View;



/**
 * @author 周启浩
 * @version 1.0
 *          基类Holder，简单实现了findViewById
 */
public abstract class BaseHolder extends RecyclerView.ViewHolder {


    protected   BaseActivity mActivity;
    public BaseHolder(View itemView, BaseActivity mActivity) {
        super(itemView);
        this.mActivity=mActivity;

    }
    public BaseHolder(View itemView) {
        super(itemView);

    }
    protected View getViewById(int id) {
        return itemView.findViewById(id);

    }


    protected boolean getStringIsNotEmpty(String nickname) {
        if ("".equals(nickname) || nickname == null) {
            return false;
        } else {
            return true;
        }
    }



}